package geometric3D;

public abstract class BoxShape {
	protected int width;
	protected int length;
	protected int height;
	public int getWidth() {
		return width;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getLength() {
		return length;
	}
	public void setLength(int length) {
		this.length = length;
	}
	public int getHeight() {
		return height;
	}
	public void setHeight(int height) {
		this.height = height;
	}
	public BoxShape(int width, int length, int height) {
		super();
		this.width = width;
		this.length = length;
		this.height = height;
	}
	public BoxShape() {

	}
	public void xRotate (){
		int temp = this.height;
		this.height = this.length;
		this.length = temp;
		
	}
	public void yRotate(){
		int temp = this.height;
		this.height = this.width;
		this.width= temp;
	}
	public void zRotate(){
		int temp = this.length;
		this.length = this.width;
		this.width = temp;
	}
	public int getVolume(){
		return width*length*height;
	}
	
	public int  getYZArea(){
		return this.length*this.height;
		
	}
	
	public int  getXZArea(){
		return this.width*this.height;
		
	}
	public int  getXYArea(){
		return this.width*this.length;
		
	}


}
